extern "C" {
    #include "lauxlib.h"
    #include "lua.h"
}

#include "nse_test.h"

static int hello_world(lua_State *L) {
    printf("Hello World From a C library\n");
    return 1;
}

static const struct luaL_Reg testlib[] = {
    { "hello", hello_world},
    {NULL,NULL}
};

LUALIB_API int luaopen_test(lua_State *L){
    luaL_newlib(L,testlib);
    return 1;
}

